<div class="form">
<?php
$cs = Yii::app()->getClientScript();  
$cs->registerScript(
  'change-radio-button_pre_post',
  '$(function () {
      $("#Momentos_MOMPREGRADO").click(function() {
        if ($("#Momentos_MOMPOSTGRADO").val()==1)
            $("#Momentos_MOMPOSTGRADO").attr("checked", false); 
      });
      $("#Momentos_MOMPOSTGRADO").click(function() {
        if ($("#Momentos_MOMPREGRADO").val()==1)
            $("#Momentos_MOMPREGRADO").attr("checked", false);    
      });
   });',
  CClientScript::POS_END
);
?>

<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'momentos-form',
	'enableAjaxValidation' => true,
));
?>

	<p class="note">
		<?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
	</p>

	<?php echo $form->errorSummary($model); ?>

		<div class="row">
		<?php echo $form->labelEx($model,'MOMNOMBRE'); ?>
		<?php echo $form->textField($model, 'MOMNOMBRE', array('maxlength' => 500)); ?>
		<?php echo $form->error($model,'MOMNOMBRE'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'MOMFECHACREACION'); ?>
		<?php echo $form->textField($model, 'MOMFECHACREACION', Array('disabled'=>true)); ?>
		<?php echo $form->error($model,'MOMFECHACREACION'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'MOMFECHAACTUALIZACION'); ?>
		<?php echo $form->textField($model, 'MOMFECHAACTUALIZACION', Array('disabled'=>true)); ?>
		<?php echo $form->error($model,'MOMFECHAACTUALIZACION'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'MOMESTADO'); ?>
		<?php echo $form->textField($model, 'MOMESTADO', array('maxlength' => 500)); ?>
		<?php echo $form->error($model,'MOMESTADO'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'MOMPREGRADO'); ?>
		<?php echo $form->radioButton($model, 'MOMPREGRADO'); ?>
		<?php echo $form->error($model,'MOMPREGRADO'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'MOMPOSTGRADO'); ?>
		<?php echo $form->radioButton($model, 'MOMPOSTGRADO'); ?>
		<?php echo $form->error($model,'MOMPOSTGRADO'); ?>
		</div><!-- row -->

		<label><?php echo GxHtml::encode($model->getRelationLabel('momentosprogramases')); ?></label>
		<?php echo $form->checkBoxList($model, 'momentosprogramases', GxHtml::encodeEx(GxHtml::listDataEx(Momentosprogramas::model()->findAllAttributes(null, true)), false, true)); ?>
		<label><?php echo GxHtml::encode($model->getRelationLabel('nucleosbasicoses')); ?></label>
		<?php echo $form->checkBoxList($model, 'nucleosbasicoses', GxHtml::encodeEx(GxHtml::listDataEx(Nucleosbasicos::model()->findAllAttributes(null, true)), false, true)); ?>
<!--		<label><?php //echo GxHtml::encode($model->getRelationLabel('nucleosespecificoses')); ?></label>-->
		<?php //echo $form->checkBoxList($model, 'nucleosespecificoses', GxHtml::encodeEx(GxHtml::listDataEx(Nucleosespecificos::model()->findAllAttributes(null, true)), false, true)); ?>

<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->